<div id="navigation">
	<a href="{U_HOME}">{DOMAIN} cPanel Index</a> ::
	Filters
</div><br />


<table align=center width=100%>
<tr>
	<th>Filter</th>
	<th>Destination</th>
	<th>Action</th>
<!-- BEGIN filterrow -->
<tr class="{filterrow.ROWCLASS}">
	<td align=center>{filterrow.SEARCH_LOCATION} {filterrow.MATCH_RULE} "{filterrow.SEARCH_TERM}"</td>
	<td align=center>{filterrow.DESTINATION}</td>
	<td align=center><a href="{filterrow.U_EDIT}">Edit</a> :: <a href="{filterrow.U_DELETE}">Delete</a></td>
</tr>
<!-- END filterrow -->
</table><br /><br />

<div class=row1 align=center>
<b>Create Filter</b>
</div>


<form method="{S_METHOD}" action="{S_ADD_ACTION}">
<table align="center">
<tr>
	<td align="right">Filter:</td>
	<td>
<select name="msgpart">
<option value="header_to:">To</option>
<option value="header_from:">From</option>
<option value="header_subject:" selected>Subject</option>
<option value="message_body">Body</option>
<option value="h_X-Spam-Status:">SpamAssassin Spam Header</option>
<option value="message_headers">Any Header</option>
</select>
<select name="fmethod">
<option value="contains" selected>Contains</option>
<option value="is">Equals</option>
<option value="begins">Begins With</option>
<option value="matches">Matches RegEx</option>
</select>
	<input type="text" name="email" size=20></td>
</tr>
<tr>
	<td align="right">Destination:</td>
	<td><input type="text" name="dest">
<tr align="center">
	<td colspan=2><input type="submit" value="Create Filter"></td>
</tr>
</table>
</form>

<div class=row2 align=center>
<b>Filter Actions</b>
</div>
The definitions of the filter actions are as follows:<br />
<ul>
<li>"Contains" matches the text in any circumstance - "Test" will block "Test", "Test1", "JustTesting", ...</li>
<li>"Equals" matches the text exactly - "Test" will block "Test", but not "Test1".</li>
<li>"Begins With" matches the text when it is at the begining of the word - "Test" will block "Test" and "Test1", but not "JustTesting".</li>
</ul>
Note that the text entered in the filter text box is case sensitive.<br /><br />

<div class=row2 align=center>
<b>Valid Destinations</b>
</div>

If you want to filter an email to multiple addresses, enter those addresses seperated by a comma, e.g. "<i>bob@{DOMAIN},fred@{DOMAIN}</i>." You can also enter "<i>:blackhole:</i>" which discards the email, or "<i>:fail: no such address here</i>" which will bounce the email back to the sender. Here you can choose the error message following "<i>:fail:</i>".<br /><br />

You can also forward the email to a script by entering "<i>|/path/to/script/script.pl</i>".<br /><br />


<div class=row2 align=center>
<b>Spam Assassin</b>
</div>
To filter email marked by Spam Assassin as spam, choose "SpamAssassin Spam Header", "Begins With", "Yes".